﻿@{
    Layout = null;
}
<!DOCTYPE html>
<html>
<head>
    <meta charset="UTF-8">
    <title>神牛系统登录</title>
    <link rel="shortcut icon" href="~/favicon.ico" />
    <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
    <meta http-equiv="Access-Control-Allow-Origin" content="*">
    <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
    <meta name="apple-mobile-web-app-status-bar-style" content="black">
    <meta name="apple-mobile-web-app-capable" content="yes">
    <meta name="format-detection" content="telephone=no">
    <link rel="stylesheet" href="~/lib/layui-v2.5.5/css/layui.css" media="all">
    <link href="~/css/login.css" rel="stylesheet" asp-append-version="true" />
    <link href="~/css/themes/toast.css" rel="stylesheet" />
    <!--[if lt IE 9]>
    <script src="https://cdn.staticfile.org/html5shiv/r29/html5.min.js"></script>
    <script src="https://cdn.staticfile.org/respond.js/1.4.2/respond.min.js"></script>
    <![endif]-->
    <script language="javascript">
        //javascript: window.history.forward(1); 
        //防止页面后退
        history.pushState(null, null, document.URL);
        window.addEventListener('popstate', function () {
            history.pushState(null, null, document.URL);
        });
    </script>
</head>
<body>
    <div class="layui-container">
        <div class="admin-login-background">
            <div class="layui-form login-form">
                <form class="layui-form" d="forms" method="post">
                    @Html.AntiForgeryToken()
                    <div class="layui-form-item logo-title">
                        <h1>神牛系统平台</h1>
                        <em>ShenNius Management System</em>
                    </div>
                    <div class="layui-form-item">
                        <label class="layui-icon layui-icon-username" for="username"></label>
                        <input type="text" name="loginname" lay-verify="required|account" placeholder="用户名" autocomplete="off" class="layui-input" value="mhg">
                    </div>
                    <div class="layui-form-item">
                        <label class="layui-icon layui-icon-password" for="password"></label>
                        <input type="password" name="password" lay-verify="required|password" placeholder="密码" autocomplete="off" class="layui-input" value="123456">
                    </div>
                    <div class="layui-form-item">
                        <label class="layui-icon layui-icon-vercode" for="captcha"></label>
                        <input type="text" name="captcha" lay-verify="required|captcha" placeholder="验证码" autocomplete="off" class="layui-input verification captcha">
                        <div class="captcha-img">
                            <img id="captchaPic" src="/sys/user/OnGetVCode?v=1" onclick="changeSrcCode();">
                        </div>
                    </div>
                 
                    <input type="hidden" name="privateKey" value="@ViewBag.RsaKey" />
                    <input type="hidden" name="numberguid" value="@ViewBag.Number" />
                    <div class="layui-form-item">
                        <button type="button" id="btnlogin" style="background-color: #009688" class="layui-btn layui-btn layui-btn-normal layui-btn-fluid" lay-submit="" lay-filter="login">立即登录</button>
                    </div>
                    <p class="banquan">© 2021-2027 神牛版权所有</p>
                </form>
            </div>
        </div>
    </div>
    <script src="~/lib/jquery-3.4.1/jquery-3.4.1.min.js" charset="utf-8"></script>
    <script src="~/lib/layui-v2.5.5/layui.js" charset="utf-8"></script>
    <script src="~/js/lay-config.js"></script>
    <script src="~/js/jsencrypt.js"></script>
    <script src="~/js/login.js" asp-append-version="true"></script>
</body>
</html>
